# Google sparse/dense hash
IF (DEFINED ENV{GOOGLEHASH_INCLUDES})
    INCLUDE_DIRECTORIES($ENV{GOOGLEHASH_INCLUDES})
ENDIF (DEFINED ENV{GOOGLEHASH_INCLUDES})

# Enumerate source files
FILE(GLOB TEST_SRC_FILES unit_test_driver.cpp)
FILE(GLOB TEST_INC_FILES *_test.h)

ADD_EXECUTABLE(MeshUtils_tests ${TEST_SRC_FILES} ${TEST_INC_FILES})
TARGET_LINK_LIBRARIES(MeshUtils_tests Mesh lib_MeshUtils ${GTEST_BOTH_LIBRARIES})
ADD_CUSTOM_COMMAND(TARGET MeshUtils_tests POST_BUILD COMMAND MeshUtils_tests)
